package com.bxl.rpc.provider.filter;

import com.bxl.netty.rpc.common.filter.Filter;
import com.bxl.netty.rpc.common.message.MsgResponseContent;
import com.bxl.netty.rpc.common.message.PackageMsg;

/**
 * <>
 *
 * @author baixl
 * @date 2021/3/10
 */
public class MyFilter implements Filter {
    public void doFilter(PackageMsg msg, MsgResponseContent contetn, Filter filter) {
        //可以做权限校验和拦截
        System.out.println("filter in");
        filter.doFilter(msg, contetn, filter);
        System.out.println("filter out");
    }
}
